﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace CurriculaAPI.ViewModelDTO
{
    public class ProfessorAddDTO
    {
        [DisplayName("姓名")]
        [Required(ErrorMessage = "姓名不能为空")]
        public string Name { get; set; }
        [DisplayName("头像照片")]
        [Required(ErrorMessage = "头像照片不能为空")]
        public string Avatar { get; set; }
        [DisplayName("性别")]
        [Required(ErrorMessage = "性别不能为空")]
        public int Sex { get; set; }
        [DisplayName("专业类别")]
        [Required(ErrorMessage = "专业类别不能为空")]
        public int CategoryName { get; set; }
        [DisplayName("课程名字")]
        [Required(ErrorMessage = "课程名字不能为空")]
        public int CourseName { get; set; }
        [DisplayName("职称名称")]
        [Required(ErrorMessage = "职称名称不能为空")]
        public int TitleName { get; set; }
        [DisplayName("上课时间")]
        [Required(ErrorMessage = "上课时间不能为空")]
        public DateTime CreateDateTime { get; set; }
    }
}